package com.woniu.common.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class TbJpHospitalinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public TbJpHospitalinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(Integer value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(Integer value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(Integer value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(Integer value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(Integer value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<Integer> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<Integer> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(Integer value1, Integer value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(Integer value1, Integer value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(Integer value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(Integer value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(Integer value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(Integer value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(Integer value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<Integer> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<Integer> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(Integer value1, Integer value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(Integer value1, Integer value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andZidIsNull() {
            addCriterion("zid is null");
            return (Criteria) this;
        }

        public Criteria andZidIsNotNull() {
            addCriterion("zid is not null");
            return (Criteria) this;
        }

        public Criteria andZidEqualTo(Integer value) {
            addCriterion("zid =", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidNotEqualTo(Integer value) {
            addCriterion("zid <>", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidGreaterThan(Integer value) {
            addCriterion("zid >", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidGreaterThanOrEqualTo(Integer value) {
            addCriterion("zid >=", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidLessThan(Integer value) {
            addCriterion("zid <", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidLessThanOrEqualTo(Integer value) {
            addCriterion("zid <=", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidIn(List<Integer> values) {
            addCriterion("zid in", values, "zid");
            return (Criteria) this;
        }

        public Criteria andZidNotIn(List<Integer> values) {
            addCriterion("zid not in", values, "zid");
            return (Criteria) this;
        }

        public Criteria andZidBetween(Integer value1, Integer value2) {
            addCriterion("zid between", value1, value2, "zid");
            return (Criteria) this;
        }

        public Criteria andZidNotBetween(Integer value1, Integer value2) {
            addCriterion("zid not between", value1, value2, "zid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidIsNull() {
            addCriterion("docking_peopleID is null");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidIsNotNull() {
            addCriterion("docking_peopleID is not null");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidEqualTo(Long value) {
            addCriterion("docking_peopleID =", value, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidNotEqualTo(Long value) {
            addCriterion("docking_peopleID <>", value, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidGreaterThan(Long value) {
            addCriterion("docking_peopleID >", value, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidGreaterThanOrEqualTo(Long value) {
            addCriterion("docking_peopleID >=", value, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidLessThan(Long value) {
            addCriterion("docking_peopleID <", value, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidLessThanOrEqualTo(Long value) {
            addCriterion("docking_peopleID <=", value, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidIn(List<Long> values) {
            addCriterion("docking_peopleID in", values, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidNotIn(List<Long> values) {
            addCriterion("docking_peopleID not in", values, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidBetween(Long value1, Long value2) {
            addCriterion("docking_peopleID between", value1, value2, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andDockingPeopleidNotBetween(Long value1, Long value2) {
            addCriterion("docking_peopleID not between", value1, value2, "dockingPeopleid");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNull() {
            addCriterion("hospital_name is null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNotNull() {
            addCriterion("hospital_name is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameEqualTo(String value) {
            addCriterion("hospital_name =", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotEqualTo(String value) {
            addCriterion("hospital_name <>", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThan(String value) {
            addCriterion("hospital_name >", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_name >=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThan(String value) {
            addCriterion("hospital_name <", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThanOrEqualTo(String value) {
            addCriterion("hospital_name <=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLike(String value) {
            addCriterion("hospital_name like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotLike(String value) {
            addCriterion("hospital_name not like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIn(List<String> values) {
            addCriterion("hospital_name in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotIn(List<String> values) {
            addCriterion("hospital_name not in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameBetween(String value1, String value2) {
            addCriterion("hospital_name between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotBetween(String value1, String value2) {
            addCriterion("hospital_name not between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andRentIsNull() {
            addCriterion("rent is null");
            return (Criteria) this;
        }

        public Criteria andRentIsNotNull() {
            addCriterion("rent is not null");
            return (Criteria) this;
        }

        public Criteria andRentEqualTo(Float value) {
            addCriterion("rent =", value, "rent");
            return (Criteria) this;
        }

        public Criteria andRentNotEqualTo(Float value) {
            addCriterion("rent <>", value, "rent");
            return (Criteria) this;
        }

        public Criteria andRentGreaterThan(Float value) {
            addCriterion("rent >", value, "rent");
            return (Criteria) this;
        }

        public Criteria andRentGreaterThanOrEqualTo(Float value) {
            addCriterion("rent >=", value, "rent");
            return (Criteria) this;
        }

        public Criteria andRentLessThan(Float value) {
            addCriterion("rent <", value, "rent");
            return (Criteria) this;
        }

        public Criteria andRentLessThanOrEqualTo(Float value) {
            addCriterion("rent <=", value, "rent");
            return (Criteria) this;
        }

        public Criteria andRentIn(List<Float> values) {
            addCriterion("rent in", values, "rent");
            return (Criteria) this;
        }

        public Criteria andRentNotIn(List<Float> values) {
            addCriterion("rent not in", values, "rent");
            return (Criteria) this;
        }

        public Criteria andRentBetween(Float value1, Float value2) {
            addCriterion("rent between", value1, value2, "rent");
            return (Criteria) this;
        }

        public Criteria andRentNotBetween(Float value1, Float value2) {
            addCriterion("rent not between", value1, value2, "rent");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoIsNull() {
            addCriterion("hospital_Card_No is null");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoIsNotNull() {
            addCriterion("hospital_Card_No is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoEqualTo(String value) {
            addCriterion("hospital_Card_No =", value, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoNotEqualTo(String value) {
            addCriterion("hospital_Card_No <>", value, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoGreaterThan(String value) {
            addCriterion("hospital_Card_No >", value, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_Card_No >=", value, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoLessThan(String value) {
            addCriterion("hospital_Card_No <", value, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoLessThanOrEqualTo(String value) {
            addCriterion("hospital_Card_No <=", value, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoLike(String value) {
            addCriterion("hospital_Card_No like", value, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoNotLike(String value) {
            addCriterion("hospital_Card_No not like", value, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoIn(List<String> values) {
            addCriterion("hospital_Card_No in", values, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoNotIn(List<String> values) {
            addCriterion("hospital_Card_No not in", values, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoBetween(String value1, String value2) {
            addCriterion("hospital_Card_No between", value1, value2, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNoNotBetween(String value1, String value2) {
            addCriterion("hospital_Card_No not between", value1, value2, "hospitalCardNo");
            return (Criteria) this;
        }

        public Criteria andGainSharingIsNull() {
            addCriterion("gain_sharing is null");
            return (Criteria) this;
        }

        public Criteria andGainSharingIsNotNull() {
            addCriterion("gain_sharing is not null");
            return (Criteria) this;
        }

        public Criteria andGainSharingEqualTo(BigDecimal value) {
            addCriterion("gain_sharing =", value, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingNotEqualTo(BigDecimal value) {
            addCriterion("gain_sharing <>", value, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingGreaterThan(BigDecimal value) {
            addCriterion("gain_sharing >", value, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("gain_sharing >=", value, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingLessThan(BigDecimal value) {
            addCriterion("gain_sharing <", value, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingLessThanOrEqualTo(BigDecimal value) {
            addCriterion("gain_sharing <=", value, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingIn(List<BigDecimal> values) {
            addCriterion("gain_sharing in", values, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingNotIn(List<BigDecimal> values) {
            addCriterion("gain_sharing not in", values, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("gain_sharing between", value1, value2, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andGainSharingNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("gain_sharing not between", value1, value2, "gainSharing");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(String value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(String value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(String value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(String value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(String value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLike(String value) {
            addCriterion("create_time like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotLike(String value) {
            addCriterion("create_time not like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<String> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<String> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(String value1, String value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(String value1, String value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andShareholderidIsNull() {
            addCriterion("shareholderID is null");
            return (Criteria) this;
        }

        public Criteria andShareholderidIsNotNull() {
            addCriterion("shareholderID is not null");
            return (Criteria) this;
        }

        public Criteria andShareholderidEqualTo(Long value) {
            addCriterion("shareholderID =", value, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidNotEqualTo(Long value) {
            addCriterion("shareholderID <>", value, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidGreaterThan(Long value) {
            addCriterion("shareholderID >", value, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidGreaterThanOrEqualTo(Long value) {
            addCriterion("shareholderID >=", value, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidLessThan(Long value) {
            addCriterion("shareholderID <", value, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidLessThanOrEqualTo(Long value) {
            addCriterion("shareholderID <=", value, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidIn(List<Long> values) {
            addCriterion("shareholderID in", values, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidNotIn(List<Long> values) {
            addCriterion("shareholderID not in", values, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidBetween(Long value1, Long value2) {
            addCriterion("shareholderID between", value1, value2, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andShareholderidNotBetween(Long value1, Long value2) {
            addCriterion("shareholderID not between", value1, value2, "shareholderid");
            return (Criteria) this;
        }

        public Criteria andDistributor1IsNull() {
            addCriterion("distributor1 is null");
            return (Criteria) this;
        }

        public Criteria andDistributor1IsNotNull() {
            addCriterion("distributor1 is not null");
            return (Criteria) this;
        }

        public Criteria andDistributor1EqualTo(Long value) {
            addCriterion("distributor1 =", value, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1NotEqualTo(Long value) {
            addCriterion("distributor1 <>", value, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1GreaterThan(Long value) {
            addCriterion("distributor1 >", value, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1GreaterThanOrEqualTo(Long value) {
            addCriterion("distributor1 >=", value, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1LessThan(Long value) {
            addCriterion("distributor1 <", value, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1LessThanOrEqualTo(Long value) {
            addCriterion("distributor1 <=", value, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1In(List<Long> values) {
            addCriterion("distributor1 in", values, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1NotIn(List<Long> values) {
            addCriterion("distributor1 not in", values, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1Between(Long value1, Long value2) {
            addCriterion("distributor1 between", value1, value2, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor1NotBetween(Long value1, Long value2) {
            addCriterion("distributor1 not between", value1, value2, "distributor1");
            return (Criteria) this;
        }

        public Criteria andDistributor2IsNull() {
            addCriterion("distributor2 is null");
            return (Criteria) this;
        }

        public Criteria andDistributor2IsNotNull() {
            addCriterion("distributor2 is not null");
            return (Criteria) this;
        }

        public Criteria andDistributor2EqualTo(Long value) {
            addCriterion("distributor2 =", value, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2NotEqualTo(Long value) {
            addCriterion("distributor2 <>", value, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2GreaterThan(Long value) {
            addCriterion("distributor2 >", value, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2GreaterThanOrEqualTo(Long value) {
            addCriterion("distributor2 >=", value, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2LessThan(Long value) {
            addCriterion("distributor2 <", value, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2LessThanOrEqualTo(Long value) {
            addCriterion("distributor2 <=", value, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2In(List<Long> values) {
            addCriterion("distributor2 in", values, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2NotIn(List<Long> values) {
            addCriterion("distributor2 not in", values, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2Between(Long value1, Long value2) {
            addCriterion("distributor2 between", value1, value2, "distributor2");
            return (Criteria) this;
        }

        public Criteria andDistributor2NotBetween(Long value1, Long value2) {
            addCriterion("distributor2 not between", value1, value2, "distributor2");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}